
void BOOT_LC786ValiableInit(void);

void BOOT_InitSerial(void);
unsigned long BOOT_GetFirmwareFileSize(void);
unsigned char BOOT_LC786XXX_MakeParity(unsigned char *ucData, unsigned char ucCnt);
unsigned char BOOT_LC786XXX_SendData(unsigned char ucS_Data);
void BOOT_LC786XXX_Busy(void);
void BOOT_LC786XXX_SendRead(unsigned char *ucData, unsigned char ucLen);
void BOOT_LC786XXX_GetCurrentMediaStatus(unsigned char ucMediaID);
void BOOT_LC786XXX_Playback(void);
void BOOT_LC786XXX_SetExtensionString(unsigned char ucMode);
void BOOT_LC786XXX_MediaSelect(void);
void BOOT_LC786XXX_StartUp(void);
unsigned char BOOT_LC786XXX_GetFileData(unsigned char ucMode, unsigned long Param, unsigned long Num);
unsigned char BOOT_LC786XXX_BCDToHex(unsigned short ucBcd);
void BOOT_LC786XXX_GetTotalMediaFile(void);
void BOOT_LC786XXX_GetFolderFileName(void);
unsigned char BOOT_LC786XXX_ReadFileCheck(unsigned char ucMode);
unsigned char BOOT_LC786XXX_Init(void);
unsigned char BOOT_CompareFileName(unsigned char *ucReadName, unsigned char *ucName, unsigned char ucChar);
unsigned char BOOT_LC786XXX_GetData(unsigned long *Cnt);
unsigned char BOOT_LC786XXX_USB_Detect(unsigned char ucMode);
void BOOT_LC786XXX_PreProcess(void);

#define	BOOT_SEQ_WAIT_USB_INSERT	0
#define	BOOT_SEQ_SET_USB_READ		1
#define	BOOT_SEQ_MEDIA_SELECT		2
#define	BOOT_SEQ_START_UP			3
#define	BOOT_SEQ_WAIT_USB_READ		4
#define	BOOT_SEQ_GET_TOTAL_FILE		5
#define	BOOT_SEQ_WAIT_REMOVE_USB	6
#define	BOOT_SEQ_END				0xFF

#define	BOOT_HOST_UPDATE			0
#define	BOOT_BLUETOOTH_UPDATE		1



